<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>会议视频添加</title>
    <?php include_once 'templates/common/head.html'; ?>
    <link href="../business/resource/css/hermes.css" rel="stylesheet">
    <link href="../business/resource/js/calendar/calendar-blue.css" type="text/css" rel="stylesheet">
    <script src="../business/resource/js/calendar/calendar.js" type="text/javascript"></script>
    <script src="../business/resource/js/hermes.js"></script>
    <style type="text/css">
       .form_d{
           width:500px;
           margin: 20px auto;
       }
    </style>

</head>
<body>
<div class="container-fluid">
    <?php include_once 'templates/common/nav.html'; ?>
    <div class="panel panel-primary">
        <div class="panel-heading text-center"><h3 class="panel-title"><?php if(isset($huiyi_shipin_detail[0]))echo "编辑".@$huiyi_shipin_detail[0]['title'];else echo "添加";?>会议视频</h3></div>
        <?php  if(!$huiyi_shipin_detail[0]):?>
        <div class="form_d">
            <form action="" method="post">
                姓名(此为视频聊天群主):<input type="text" name="name" id="namese" style="width: 120px">
                <input type="button" onclick="selectshow()" name="select" value="搜索用户">
            </form>
        </div>
        <div class="form_d"><span style="width: 180px">用   户:</span>
            <div id="xianshi">
                    <input type="radio" checked="checked" value="<?=$huiyi_shipin_detail[0]['操作人id']?>" name="专家id">
                    <?=$huiyi_shipin_detail[0]['name']?>
            </div>
            <?php  endif;?>
        <form action="" method="post">

            <div class="form_d">
                <input type="hidden" value="<?=$huiyi_shipin_detail[0]['操作人id']?>" id="autor" name="操作人id">
                <input type="hidden" value="<?=$huiyi_shipin_detail[0]['群id']?>" id="autor" name="群id">
                <input name="video_id" value="<?=@$huiyi_shipin_detail[0]['id']?>" type="hidden">
              <!--  <div class="form_d"><span>会议名称:</span><select name="会议名称">
                        <option value="">请选择</option>
                        <?php foreach ($huiyi_res as $k => $b):?>
                        <?php if($huiyi_shipin_detail[0]['meet_id']==$b['id']):?>
                           <option  selected value="<?=$b['父id']?>-<?=$b['id']?>"><?=$b['name']?></option></option>
                      <?php else:?>
                       <option value="<?=$b['父id']?>-<?=$b['id']?>"><?=$b['name']?></option></option>
                    <?php endif;?>
                    <?php endforeach; ?>
                        </select></div>-->
                <div class="form_d"><span>标题:</span><input style="width: 80%;" type="text" name="title" value="<?=@$huiyi_shipin_detail[0]['title']?>"></div>
            <div class="form_d"><span>视频路径:</span><textarea style="width: 80%;" type="text" name="url" value=""><?=@$huiyi_shipin_detail[0]['url']?></textarea></div>
                <div class="form_d"><span>主讲人:</span><input style="width: 80%;" type="text" name="主讲人" value="<?=@$huiyi_shipin_detail[0]['主讲人']?>"></div>
                <div class="form_d"><span>视频播放时长:</span><!-- 加载编辑器的容器 -->
                    <input type="text"  name="播放时长" value="<?=@$huiyi_shipin_detail[0]['播放时长']?>"/>
                </div>
                <div class="form_d"><span>预期视频上线时间:</span><!-- 加载编辑器的容器 -->
                    <input type="date"  name="nowtime" placeholder="2016-5-10" value="<?=@$huiyi_shipin_detail[0]['nowtime']?>"/>
                </div>



            <div class="form_d"><input id="tijiao" type="submit" name="okn" value="提交">

               </div>
</div>
        </form>


    </div>

</div>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="../business/resource/js/jquery-1.11.1.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="../business/resource/js/bootstrap.min.js"></script>

</body>
</html>
<script src="../business/resource/js/jquery-1.11.1.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="../business/resource/js/bootstrap.min.js"></script>
<script language="JavaScript">
    function selectshow(){
        var name= document.getElementById("namese").value;
        $.post('index.php?m=video_course&a=find_user',{name:name,'businessFlag':'ac查找用户'},function(data) {

            document.getElementById('xianshi').innerHTML='';
            document.getElementById("xianshi").innerHTML=data;

        });

    }
    $(function(){
        $("#tijiao").click(function(){
            var q= $('input[name="专家id"]:checked').val();
            if(q.length!=0){
                $('#autor').val(q);
            }
            $(this).attr('hidden',true);
        });
    })

</script>


